package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;


/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class ToolServices extends Model implements IValidator {
	/**
     * serialVersionUID
     */
    private static final long serialVersionUID = -8150745781941720541L;
    // Fields    
	private Long id; 
	private String toolname; 
	private String status; 
		
	//default constructor
    public ToolServices() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public String getToolname() {
        return this.toolname;
    }
    
    public void setToolname(String toolname) {
    	this.firePropertyChange("toolname", this.toolname, toolname);
    	this.toolname = toolname;
    }
    
	public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
    	this.firePropertyChange("status", this.status, status);
    	this.status = status;
    }
    
   	public boolean validate(Object arg0) {
		//ToolServices toolServices = (ToolServices)arg0;
		//Validation.required("toolServices.id",toolServices.getId());
		return true;
	}
}